<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
    <?php include_http_metas() ?>
    <?php include_metas() ?>
    <?php include_title() ?>
    <link rel="shortcut icon" href="/favicon.ico" />
  </head>
  <body id='body'>
  	<div class="page_header">
  		Apartements admin site
  	</div>
  	<div class="page_menu">
	  <?php use_helper ( 'I18N' ) ?>
  		<?php if( $sf_user->isAuthenticated() ): ?>
    		<span class="icon apartments"><?php echo link_to(__('Apartements'), 'apartman/index'); ?></span>
    		<span class="icon bookings" ><?php echo link_to(__('Bookings'), 'booking/index'); ?></span>
    		<span class="icon booking-list" ><?php echo link_to(__('Booking Table'), 'booking/bookingList'); ?></span>
    		<span class="icon pricelist"><?php echo link_to(__('Pricelist'), 'price/index'); ?></span>
    		<span class="icon upload-prices"><?php echo link_to(__('Upload prices'), 'price/showUlForm'); ?></span>
    		<span class="icon gallery" ><?php echo link_to(__('Galleries'), 'jwGalleryAdmin/index'); ?></span>			
    		<span class="icon users" ><?php echo link_to(__('Users'), 'sfGuardUser/index'); ?></span>
    		<span class="icon groups"><?php echo link_to(__('Groups'), 'sfGuardGroup/index'); ?></span>
    		<span class="icon perm" ><?php echo link_to(__('Permissions'), 'sfGuardPermission/index'); ?></span>
    		<span class="icon logout" ><?php echo link_to(__('Logout'), 'sfGuardAuth/signout'); ?></span> 
  		<?php else: ?>
  			<span><?php echo link_to(__('Login'), 'sfGuardAuth/signin'); ?></span>
  		<?php endif; ?>
  	</div>
  	<div id='content'>
    	<?php echo $sf_content ?>
    </div>
  </body>
</html>
